package com.windowes.weichang.dto;

import com.windowes.weichang.utils.BigDecimalUtil;

import java.math.BigDecimal;

/***
 *
 * @author: yangqing
 * @email: qing.yang@bangdao-tech.com
 * @createTime: 2018/8/1 下午11:25
 * @description:
 *
 **/
public class EBPayRespDTO {


    /**
     * addition :
     * amount : 0.01
     * bankcode :
     * bindid :
     * cardno :
     * cardtype :
     * code : 1
     * customernumber : 10000449591
     * externalid : ab2e205520a61504605112ZGT
     * hmac : d2ca79c9089b49224a74ebd7794ccd7d
     * payurl : https://shouyin.yeepay.com/nc-cashier-wap/wap/request/10000449591/PL8MoIBH6ZmsxDQ-gmRI7A%3D%3D
     * requestid : 11swsnro1kok00swws
     */

    private String addition;
    private BigDecimal amount;
    private String bankcode;
    private String bindid;
    private String cardno;
    private String cardtype;
    private String code;
    private String customernumber;
    private String externalid;
    private String hmac;
    private String payurl;
    private String requestid;

    public String getAddition() {
        return addition;
    }

    public void setAddition(String addition) {
        this.addition = addition;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getBankcode() {
        return bankcode;
    }

    public void setBankcode(String bankcode) {
        this.bankcode = bankcode;
    }

    public String getBindid() {
        return bindid;
    }

    public void setBindid(String bindid) {
        this.bindid = bindid;
    }

    public String getCardno() {
        return cardno;
    }

    public void setCardno(String cardno) {
        this.cardno = cardno;
    }

    public String getCardtype() {
        return cardtype;
    }

    public void setCardtype(String cardtype) {
        this.cardtype = cardtype;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCustomernumber() {
        return customernumber;
    }

    public void setCustomernumber(String customernumber) {
        this.customernumber = customernumber;
    }

    public String getExternalid() {
        return externalid;
    }

    public void setExternalid(String externalid) {
        this.externalid = externalid;
    }

    public String getHmac() {
        return hmac;
    }

    public void setHmac(String hmac) {
        this.hmac = hmac;
    }

    public String getPayurl() {
        return payurl;
    }

    public void setPayurl(String payurl) {
        this.payurl = payurl;
    }

    public String getRequestid() {
        return requestid;
    }

    public void setRequestid(String requestid) {
        this.requestid = requestid;
    }


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"addition\":\"")
                .append(addition).append('\"');
        sb.append(",\"amount\":")
                .append(amount);
        sb.append(",\"bankcode\":\"")
                .append(bankcode).append('\"');
        sb.append(",\"bindid\":\"")
                .append(bindid).append('\"');
        sb.append(",\"cardno\":\"")
                .append(cardno).append('\"');
        sb.append(",\"cardtype\":\"")
                .append(cardtype).append('\"');
        sb.append(",\"code\":\"")
                .append(code).append('\"');
        sb.append(",\"customernumber\":\"")
                .append(customernumber).append('\"');
        sb.append(",\"externalid\":\"")
                .append(externalid).append('\"');
        sb.append(",\"hmac\":\"")
                .append(hmac).append('\"');
        sb.append(",\"payurl\":\"")
                .append(payurl).append('\"');
        sb.append(",\"requestid\":\"")
                .append(requestid).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
